#!/usr/bin/env python
# -*- coding:utf-8 -*-

__author__ = 'Bane'
__date__ = '15-4-27'
__contact__ = 'banezhang@zoho.com'
__copyright__ = 'Copyright (C) 2015, bane.im'

data = {
    "name": "name",
    "age": 20,
    "sex": "male"
}

keys = data.keys()
keys.sort()
for key in keys:
    print(key, data[key])

for key in sorted(data.keys()):
    print(key, data[key])
